Change in openvpn[master]: Use correct undo_list when clearing DNS addresses
A message that is not in the archive (sent off-list or not yet received): gerrit.1762200393000.Iafac2b8f319457de8e36b427f26ebc27c040c6f7@...2715...
Attention is currently required from: flichtenheld, plaisthos.
Hello plaisthos, flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1344?usp=email
to review the following change.
Change subject: Use correct undo_list when clearing DNS addresses
......................................................................
Use correct undo_list when clearing DNS addresses
Reported by: <[email protected]...>
---
M src/openvpnserv/interactive.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/44/1344/1
src/openvpnserv/interactive.c +1 -1
@@ -1797,7 +1797,7 @@ HandleDNSConfigMessage(const dns_cfg_message_t *msg, undo_lists_t *lists) { DWORD err = 0; -undo_type_t undo_type = (msg->family ==AF_INET6 ) ? undo_dns4 : undo_dns6; +undo_type_t undo_type = (msg->family ==AF_INET6 ) ? undo_dns6 : undo_dns4;int addr_len = msg->addr_len;/* sanity check */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1344?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iafac2b8f319457de8e36b427f26ebc27c040c6f7
Gerrit-Change-Number: 1344
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
Hello flichtenheld, plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/1344?usp=email
to look at the new patch set (#2).
Change subject: Use correct undo_list when clearing DNS addresses
......................................................................
Use correct undo_list when clearing DNS addresses
Reported by: <[email protected]...>
---
M src/openvpnserv/interactive.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/44/1344/2
src/openvpnserv/interactive.c +1 -1
@@ -1797,7 +1797,7 @@ HandleDNSConfigMessage(const dns_cfg_message_t *msg, undo_lists_t *lists) { DWORD err = 0; -undo_type_t undo_type = (msg->family ==AF_INET6 ) ? undo_dns4 : undo_dns6; +undo_type_t undo_type = (msg->family ==AF_INET6 ) ? undo_dns6 : undo_dns4;int addr_len = msg->addr_len;/* sanity check */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1344?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iafac2b8f319457de8e36b427f26ebc27c040c6f7
Gerrit-Change-Number: 1344
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos, selvanair.
stipa has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1344?usp=email )
Change subject: Use correct undo_list when clearing DNS addresses
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1344?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iafac2b8f319457de8e36b427f26ebc27c040c6f7
Gerrit-Change-Number: 1344
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Mon, 03 Nov 2025 21:06:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH v2 1/1 Use correct undo_list when clearing DNS addresses
In reply to a message not in the archiveFrom: Selva Nair <[email protected]...>
Reported by: <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1344
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1344
This mail reflects revision 2 of this Change.
Acked-by according to Gerrit (reflected above):
Lev Stipakov <[email protected]...>
src/openvpnserv/interactive.c +1 -1
@@ -1797,7 +1797,7 @@ HandleDNSConfigMessage(const dns_cfg_message_t *msg, undo_lists_t *lists) { DWORD err = 0; -undo_type_t undo_type = (msg->family ==AF_INET6 ) ? undo_dns4 : undo_dns6; +undo_type_t undo_type = (msg->family ==AF_INET6 ) ? undo_dns6 : undo_dns4;int addr_len = msg->addr_len;/* sanity check */
[Openvpn-devel] [PATCH applied] Re: Use correct undo_list when clearing DNS addresses
Thanks. I do wonder how this could have worked so long without anyone noticing...
Your patch has been applied to the master and release/2.6 branch (bugfix).
The patch would apply to release/2.5 as well, but since we don't provide windows installer releases for 2.5.x anymore I'm not sure it's worth it.
commit 59fed2ad127bda2986f4c70d128453740ca63d34 (master) commit 21d6b663d3a4370348d5cd071ba2207dc63f0c9f (release/2.6)
Author: Selva Nair Date: Mon Nov 3 22:25:17 2025 +0100
Use correct undo_list when clearing DNS addresses
Signed-off-by: Selva Nair <[email protected]...>
Acked-by: Lev Stipakov <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1344
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34171.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#3) to the change originally created by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1344?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by stipa
Change subject: Use correct undo_list when clearing DNS addresses
......................................................................
Use correct undo_list when clearing DNS addresses
Reported by: <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1344
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34171.html
---
M src/openvpnserv/interactive.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/44/1344/3
src/openvpnserv/interactive.c +1 -1
@@ -1797,7 +1797,7 @@ HandleDNSConfigMessage(const dns_cfg_message_t *msg, undo_lists_t *lists) { DWORD err = 0; -undo_type_t undo_type = (msg->family ==AF_INET6 ) ? undo_dns4 : undo_dns6; +undo_type_t undo_type = (msg->family ==AF_INET6 ) ? undo_dns6 : undo_dns4;int addr_len = msg->addr_len;/* sanity check */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1344?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iafac2b8f319457de8e36b427f26ebc27c040c6f7
Gerrit-Change-Number: 1344
Gerrit-PatchSet: 3
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1344?usp=email )
Change subject: Use correct undo_list when clearing DNS addresses
......................................................................
Use correct undo_list when clearing DNS addresses
Reported by: <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1344
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34171.html
---
M src/openvpnserv/interactive.c
1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpnserv/interactive.c +1 -1
@@ -1797,7 +1797,7 @@ HandleDNSConfigMessage(const dns_cfg_message_t *msg, undo_lists_t *lists) { DWORD err = 0; -undo_type_t undo_type = (msg->family ==AF_INET6 ) ? undo_dns4 : undo_dns6; +undo_type_t undo_type = (msg->family ==AF_INET6 ) ? undo_dns6 : undo_dns4;int addr_len = msg->addr_len;/* sanity check */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1344?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iafac2b8f319457de8e36b427f26ebc27c040c6f7
Gerrit-Change-Number: 1344
Gerrit-PatchSet: 3
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>